package com.shijunhao.graduation.annotations;

import com.shijunhao.graduation.properties.OperationTarget;
import com.shijunhao.graduation.properties.OperationType;

import java.lang.annotation.*;

/**
 * @author: shijunhao
 * @date: 2022/3/15 22:36
 * @description:
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface OperationLog {
    /**
     * 操作目标
     */
    String target() default OperationTarget.BUSINESS;
    /**
     * 操作类型
     */
    String type() default OperationType.QUERY;
    /**
     * 描述
     */
    String description() default "";
}
